package cuongtl.mvc.ex05;

public class entity {

	private String FullName;
	private int Old;
	private String Rela;
	private String Sex;
	private String bientamthoi;

	public String getFullName() {
		return FullName;
	}

	public void setFullName(String fullName) {
		FullName = fullName;
	}

	public int getOld() {
		return Old;
	}

	public void setOld(int old) {
		Old = old;
	}

	public String getRela() {
		return Rela;
	}

	public void setRela(String rela) {
		Rela = rela;
	}

	public String getSex() {
		return Sex;
	}

	public void setSex(String sex) {
		Sex = sex;
	}

	public String getBientamthoi() {
		return bientamthoi;
	}

	public void setBientamthoi(String bientamthoi) {
		this.bientamthoi = bientamthoi;
	}

	public boolean CheckIp() {
		if (getFullName().isEmpty() || getBientamthoi().isEmpty()
				|| getRela().isEmpty() || getSex().isEmpty()) {

			return false;
		} else {
			Old = Integer.parseInt(getBientamthoi());
			return true;

		}
	}

}
